package cn.iot.sys.service.impl;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.dao.SysMajorDao;
import cn.iot.sys.entity.SysMajor;
import cn.iot.sys.service.SysMajorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysMajorServiceImpl implements SysMajorService {
    @Resource
    private SysMajorDao sysMajorDao;
    private Logger logger = LoggerFactory.getLogger(getClass());
    @Override
    public ResultMsg getSysMajorList() {
        logger.info("SysMajorServiceImpl getSysMajorList start...");
        List<SysMajor> sysMajorList = sysMajorDao.getSysMajorList();
        ResultMsg msg = new ResultMsg(200,"成功",sysMajorList);
        return msg;
    }
}
